class ObjAlarmInfo {
  String alarmInfo;
  String alarmTime;
  int alarmType;
  String alarmTypeName;
  int id;

  //添加 状态和区域字段
  String status;

  String personName;
  String jobNumber;
  String jobStartTime;
  String jobEndTime;

  String personSn;
  String vehicleSn;

  ObjAlarmInfo(
      {this.alarmInfo,
      this.alarmTime,
      this.alarmType,
      this.alarmTypeName,
      this.id,
      this.status,
      this.personName,
      this.jobNumber,
      this.jobStartTime,
      this.jobEndTime,
      this.personSn,
      this.vehicleSn});

  factory ObjAlarmInfo.fromJson(Map<String, dynamic> json) {
    return ObjAlarmInfo(
        alarmInfo: json['alarmInfo'],
        alarmTime: json['alarmTime'],
        alarmType: json['alarmType'],
        alarmTypeName: json['alarmTypeName'],
        id: json['id'],
        status: json['status'],
        personName: json['personName'] ?? "",
        jobNumber: json['jobNumber'] ?? "",
        jobStartTime: json['jobStartTime'] ?? "",
        jobEndTime: json['jobEndTime'] ?? "",
        personSn: json['personSn'] ?? "",
        vehicleSn: json['vehicleSn'] ?? "");
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['alarmInfo'] = this.alarmInfo;
    data['alarmTime'] = this.alarmTime;
    data['alarmType'] = this.alarmType;
    data['alarmTypeName'] = this.alarmTypeName;
    data['id'] = this.id;
    return data;
  }
}
